package com.woniuxy.sort.core.service.impl;

import com.woniuxy.sort.core.model.YhMaintainmenu;
import com.woniuxy.sort.core.mapper.YhMaintainmenuMapper;
import com.woniuxy.sort.core.model.YhServe;
import com.woniuxy.sort.core.service.YhMaintainmenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author woniuxy
 * @since 2021-06-29
 */
@Service
public class YhMaintainmenuServiceImpl extends ServiceImpl<YhMaintainmenuMapper, YhMaintainmenu> implements YhMaintainmenuService {

    @Resource
    private YhMaintainmenuMapper maintainmenuMapper;


    @Override
    public List<YhMaintainmenu> selectAll() {
        List<YhMaintainmenu> maintainmenus = this.maintainmenuMapper.selectAll();
        return maintainmenus;
    }

    @Override
    public List<YhServe> selectByServe(int menuId) {
        List<YhServe> yhServes = this.maintainmenuMapper.selectByServe(menuId);
        return yhServes;
    }
}
